#include <Vector2D.h>

#include <HMC6352.h>
#include <Wire.h>

//        add,  nbsamples VCC gnd
HMC6352 b(0x42, 10,       16, 17);
void setup()
{
  Serial.begin(9600);
  Wire.begin();
}

void loop()
{
  Serial.print("Heading vect.x: ");
  Serial.println(b.headingSmoothVect()._x);
  Serial.print("Heading vect.y: ");
  Serial.println(b.headingSmoothVect()._y);
  delay(500);
}
